<?php

include_once("ActionFactory.php");
include_once("ActionProxy.php");

/**
 * icescape
 * ControllerFactory.php 
 * @author   iCer <iCer@justdn.com> created on Mar 9, 2007
 * @version  $Id$
 */

class ControllerFactory {
	
	protected static $_instance;
	
	public static function getInstance() {
		if(isset(self::$_instance)) {
			self::$_instance = build();
		}
		return $_instance;
	}
	
	private static function  build() {
		$ins = new IzzController();
		$ins->actionFactory = new ActionFactory();
		$ins->actionProxy = new ActionProxy();
		return $ins;
	}
}
?>